import { get, post } from "@/utils/http";

// 展示获取已有起降点
const getPointList = () => get(`/airspace/route/getPointList`);

// 手工导入与文件导入向后端保存数据
const addPoints = (data) => post(`/airspace/route/addPoints`, data);

// 生成航路
const genRoute = (data) => post(`/airspace/route/genRoute`, data);

// 航路平滑
const getRouteList = (data) => post(`/airspace/route/getRouteList`, data);

export default {
  getPointList,
  addPoints,
  genRoute,
  getRouteList,
};
